package ${packageName}.entity;

import io.mybatis.provider.Entity;
import lombok.Data;

import java.util.Date;

@Data
@Entity.Table(value = "${tableName}", remark = "${remark}")
public class ${className}{

<#list fieldAttributes as fieldAttribute>
    <#if fieldAttribute.isPrimaryKey>
        @Entity.Column(id = true)
        <#else >
            @Entity.Column("${fieldAttribute.columnName}")
    </#if>
    private ${fieldAttribute.type} ${fieldAttribute.fieldName};
</#list>

}